﻿<UserControl x:Class="MouseExtender.Controls.UserControls.AddEditTabUC"
						 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
						 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
						 xmlns:common="clr-namespace:MouseExtender.Logic.Common"
						 xmlns:resx="clr-namespace:MouseExtender.Resources">
	<UserControl.Resources>
		<Style TargetType="{x:Type TextBlock}">
			<Setter Property="Foreground" Value="#FF333333"/>
			<Setter Property="Margin" Value="0,3,0,0"/>
		</Style>
	</UserControl.Resources>
	<Grid Width="250">
		<Grid.RowDefinitions>
			<RowDefinition Height="*"/>
			<RowDefinition Height="Auto"/>
		</Grid.RowDefinitions>
		<StackPanel HorizontalAlignment="Stretch" Grid.Row="0" Orientation="Vertical" Margin="10">
			<TextBlock DockPanel.Dock="Top" Text="{x:Static resx:UIResources.AddEditTab_TabTitle}"/>
			<TextBox x:Name="tabTitle" Text="{Binding Name}" MaxLength="200" Loaded="tabTitle_Loaded"/>
		</StackPanel>
		<StackPanel HorizontalAlignment="Right" Grid.Row="1" Orientation="Horizontal" Margin="5,5,10,10">
			<Button Command="common:Commands.SaveTabSettings" IsDefault="True" Style="{StaticResource SettingsButtons}" Content="{x:Static resx:UIResources.Buttons_OK}"/>
			<Button Command="common:Commands.CancelPopup" IsCancel="True" Style="{StaticResource SettingsButtons}" Content="{x:Static resx:UIResources.Buttons_Cancel}"/>
		</StackPanel>
	</Grid>
</UserControl>
